import requests

url = "https://mp.weixin.qq.com/mp/profile_ext"

params = {
    'action': "getmsg",
    '__biz': "MjM5NzcxODEyMQ==",
    'f': "json",
    'offset': "10",
    'count': "10",
    'is_ok': "1",
    'scene': "",
    'uin': "MTUxMzYwMTc2MA==",
    'key': "daf9bdc5abc4e8d090059fe739b167edbfc07b15910d554ad7dbddcb2b7d12f0e0c36090b7932fb3bd197fd229647bbcad2b970312bbce2e9c3bcb431005d83834e50f15a04933c61da270c58bdeca31f022213aee23ad194a60deeba8a73fb03aee89363fa02b61a89e3f75d21729a1578c74861923d150d034a22a89de39a7",
    'pass_ticket': "SjYhMU4Hvz/7LtBWNh2QiSWx/O2jw6Mtm5WTZ/5fZGBo7J0LjJTNRlhh/MK7cPBo",
    'wxtoken': "",
    'appmsg_token': "1281_NaAU8V5fan5c5k4DWSde8KkoKrkFep512rttOg~~",
    'x5': "0",
    'f': "json"
}

headers = {
    'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 NetType/WIFI MicroMessenger/7.0.20.1781(0x6700143B) WindowsWechat(0x63090b13) XWEB/11097 Flue",
    'x-requested-with': "XMLHttpRequest",
    'sec-fetch-site': "same-origin",
    'sec-fetch-mode': "cors",
    'sec-fetch-dest': "empty",
    'referer': "https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MjM5NzcxODEyMQ==&uin=MTUxMzYwMTc2MA%3D%3D&key=daf9bdc5abc4e8d090059fe739b167edbfc07b15910d554ad7dbddcb2b7d12f0e0c36090b7932fb3bd197fd229647bbcad2b970312bbce2e9c3bcb431005d83834e50f15a04933c61da270c58bdeca31f022213aee23ad194a60deeba8a73fb03aee89363fa02b61a89e3f75d21729a1578c74861923d150d034a22a89de39a7&devicetype=Windows+11+x64&version=63090b13&lang=zh_CN&a8scene=1&acctmode=0&pass_ticket=SjYhMU4Hvz%2F7LtBWNh2QiSWx%2FO2jw6Mtm5WTZ%2F5fZGBo7J0LjJTNRlhh%2FMK7cPBo&wx_header=1",
    'accept-language': "zh-CN,zh;q=0.9",
    'Cookie': ""
              "pac_uid=0_91fad2562aca2; "
              "iip=0; pgv_pvid=5933546322; "
              "wxuin=1513601760; "
              "lang=zh_CN; "
              "pass_ticket=SjYhMU4Hvz/7LtBWNh2QiSWx/O2jw6Mtm5WTZ/5fZGBo7J0LjJTNRlhh/MK7cPBo; "
              "devicetype=android-31; "
              "version=28003255; "
              "wap_sid2=COD13tEFEnZ5X0hCRF9pTUt5TnR1OXVoSkMzNFgwdDdIaTFUamNYd2FidnYwQkk4ZWNLV0pyYVIxOE81bDYyLXFfUDlpcFREbUdUcThHMXBoUWpVYzdXbkFkcmplenhxNXhoVXRwTnpmaktvdHBSM1NPR0s2MjN4SUFBQX5+MMbjwLUGOA1AlU4="
}

response = requests.get(url, params=params, headers=headers)

print(response.text)

